import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [
  {
    path: '/message',
    name: 'message',
    component: () => import('@/views/message.vue')
  },
  {
    path: '/list',
    name: 'list',
    component: () => import('@/views/list.vue')
  },
  {
    path: '/simpleChat',
    name: 'simpleChat',
    component: () => import('@/views/simpleChat.vue')
  },
  { path: '/', redirect: { name: 'message' } }
]
const router = createRouter({
  history: createWebHashHistory(),
  routes
})
export default router
